package com.chixing.day07_abstract.word;

public class Computer {
    public static void main(String[] args) {

        Cpu cpu = new IntelCpu();
        cpu.cpuRunning();
        cpu.cpuClosing();

        VideoCard videoCard = new DmengVideoCard();
        videoCard.videoRunning();
        videoCard.videoClosing();


        /*IntelCpu intelCpu = new IntelCpu();
        intelCpu.cpuId = 101;
        intelCpu.cpuType ="i5-9300H";
        intelCpu.cpuName = "英特尔";
        intelCpu.cpuRunning();
        intelCpu.cpuClosing();

        DmengVideoCard dmengVideoCard = new DmengVideoCard();
        dmengVideoCard.dmengVideoCardId=201;
        dmengVideoCard.dmengVideoCardType="GTX1650";
        dmengVideoCard.dmengVideoCardName="NVIDIA";
        dmengVideoCard.videoRunning();
        dmengVideoCard.videoClosing();
        Mainboard mainboard = new Mainboard(intelCpu,dmengVideoCard);
        mainboard.run();
        mainboard.close();*/
    }
}
